package com.company.project.service;
import com.company.project.model.Adviser;
import com.company.project.core.Service;
import com.company.project.model.AdviserResume;
import com.company.project.util.PageUtil;

import java.util.List;


/**
 * Created by CodeGenerator on 2018/10/08.
 */
public interface AdviserService extends Service<Adviser> {
    //获取全部顾问，分页
    PageUtil<Adviser> getAllAdviser(Integer pageIndex);
    /**
     * 前台总条数
     * @return
     */
    Integer receptionCount();
    //获取总条数
    Integer getAllCount();

    /**
     * 更新顾问
     * @param adviser
     * @return
     */
    Boolean updateAdviser(Adviser adviser);
    Integer rankCount(Integer rank);

    /**
     * 调整专家顺序
     */
    Boolean upRank(Integer rank);
    Boolean AdjustRank(Adviser adviser);
    /**
     * 添加顾问
     */
    Boolean addAdviser(Adviser adviser);
    Integer RankNum();

    /**
     * 删除顾问
     * @return
     */
    Boolean deleteAdviser(Integer id);
    Integer selectRankById(Integer id);

    /**
     * 后台查询顾问
     * @return
     */
    PageUtil<Adviser> selectAdminAdviser(Integer pageIndex);


    /**
     * 后台顾问详情
     */
    List<Adviser> selectAdviserDetails(Integer id);

    /**
     * 专家轮播图
     * @return
     */
    List<Adviser> selectPicture();

    Boolean stateWithRank(Integer rank);

    /**
     * 前台查询专家详情
     * @param id
     * @return
     */
    List<Adviser> particularsById(Integer id);
}

